{% extends "base.html" %}

{% block scripts %}
    {{ super() }}
    <script type="text/javascript" src="{{ url_for('static', filename='js/jquery-3.4.1.min.js') }}"></script>
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: "http://127.0.0.1:5000/background/test",
                type: "GET",
                dataType: "JSON",
                success: function (response) {
                    user_list = response.users_info;
                    {#alert(user_list[0]["username"]);#}
                },
                error: function () {
                    alert('11123');
                }
            });
        })
    </script>
{% endblock %}
{% block title %}jquery测试{% endblock %}

{% block page_content %}
    <div>
        <input id="btn" type="button" value="abc"/>
    </div>
{% endblock %}
